Check out this walkthrough for making a Roll A Ball Game for an AR App using 8th Wall XR for free! Using the Unity Asset Store to bring in a game project, we will convert the mobile game into an AR App! Our Instagram: https://instagram.com/8thwall Helpful Videos: Build an AR App in Under 15 Minutes - https://goo.gl/2cJjKu 8th Wall XR Remote Tutorial - https://goo.gl/9TY9pG 8th Wall XR App Downloads: App Store - https://goo.gl/yPdd2w Play Store - https://goo.gl/YpEuP9 If you have any questions, comment below! We'd love to hear your feedback. -------------------------------------------------------------------------------------- Code for Tutorial: //At the top of the class, add two new private variables, to track the // start and end positions of our swipe: private Vector2 touchStart, touchEnd; void Update() { // Swipe start if (Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Began) { touchStart = Input.GetTouch(0).position; } // Swipe end if (Input.touchCount == 1 && Input.GetTouch(0).phase == TouchPhase.Ended) { touchEnd = Input.GetTouch(0).position; float cameraFacing = Camera.main.transform.eulerAngles.y; Vector2 swipeVector = touchEnd - touchStart; Vector3 inputVector = new Vector3(swipeVector.x, 0.0f, swipeVector.y); Vector3 movement = Quaternion.Euler(0.0f, cameraFacing, 0.0f) * Vector3.Normalize(inputVector); rb.velocity = movement; } } -------------------------------------------------------------------------------------- Connect with us on Social! Website: https://www.8thwall.com LinkedIn: https://www.linkedin.com/company/8thwall Instagram: https://instagram.com/8thwall Twitter: https://twitter.com/the8thwall Facebook: https://www.facebook.com/the8thwall/ Located in Palo Alto, 8th Wall’s mission is to break the wall between the digital world and the physical world. Thanks for watching!